import type { RouteRecordRaw } from "vue-router"
const Layouts = () => import("@/layouts/index.vue")

export const tradeRouters: RouteRecordRaw[] = [
  {
    path: "/trade",
    component: Layouts,
    meta: {
      title: "交易",
      elIcon: "Notebook"
    },
    children: [
      {
        path: "tradegoods",
        component: () => import("@/pages/trade/TradeGoods.vue"),
        name: "TradeGoods",
        meta: {
          title: "商品",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodsattr",
        component: () => import("@/pages/trade/TradeGoodsAttr.vue"),
        name: "TradeGoodsAttr",
        meta: {
          title: "商品属性关联",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodscart",
        component: () => import("@/pages/trade/TradeGoodsCart.vue"),
        name: "TradeGoodsCart",
        meta: {
          title: "购物车",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodscategory",
        component: () => import("@/pages/trade/TradeGoodsCategory.vue"),
        name: "TradeGoodsCategory",
        meta: {
          title: "商品分类",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodsdetails",
        component: () => import("@/pages/trade/TradeGoodsDetails.vue"),
        name: "TradeGoodsDetails",
        meta: {
          title: "商品详情",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodsfavorites",
        component: () => import("@/pages/trade/TradeGoodsFavorites.vue"),
        name: "TradeGoodsFavorites",
        meta: {
          title: "收藏夹",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodsimage",
        component: () => import("@/pages/trade/TradeGoodsImage.vue"),
        name: "TradeGoodsImage",
        meta: {
          title: "商品图片关联",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodsorder",
        component: () => import("@/pages/trade/TradeGoodsOrder.vue"),
        name: "TradeGoodsOrder",
        meta: {
          title: "订单",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradegoodspay",
        component: () => import("@/pages/trade/TradeGoodsPay.vue"),
        name: "TradeGoodsPay",
        meta: {
          title: "付款",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "tradeuserwish",
        component: () => import("@/pages/trade/TradeUserWish.vue"),
        name: "TradeUserWish",
        meta: {
          title: "心愿",
          elIcon: "List",
          keepAlive: true
        }
      },
    ]

  }
]
